"use client"
import Link from "next/link";
import { useState } from "react";

export default function RootLayout({
    children,
  }: Readonly<{
    children: React.ReactNode;
  }>) {
    const [count,setCount] = useState(0)
    return (
     <div className="border-2 border-dashed border-white p-4 w-1/2 mx-auto mt-10">
          <h2>Dashboard Template {count}</h2>
          <button onClick={() => setCount(count + 1)} className="bg-white text-black p-2 my-4 rounded-md">Increment</button>
          {children}
      </div>
    );
  }